Skip to content

fix(gsbot): patch url (RUSTSEC-2026-0592); record chrono and derivative departures - #706

Open
hyperpolymath wants to merge 3 commits into
mainfrom
fix/gsbot-url-patch-departures
Open

hyperpolymath wants to merge 3 commits into
mainfrom
fix/gsbot-url-patch-departures

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Owner ruling by selector, 22 Nov: "patch url, record the rest". Two commits, each in its own change.

  1. fix(gsbot): update url to 2.5.9: clears RUSTSEC-2026-0592 (url <= 2.5.8, Url::origin() recursion on blob: URLs). Only bots/gsbot/Cargo.lock changes: url 2.5.8 to 2.5.9, and form_urlencoded 1.2.2 to 1.2.3 with it. Done with cargo update -p url --precise 2.5.9, because plain cargo update -p url locked nothing here (stale index).
  2. chore(departures): adds .machine_readable/departures.jsonl (the ledger path in DEPARTURES.adoc section 5) with two blocked rows, one defect per row, each with a grep-present check that the package is still in bots/gsbot/Cargo.lock:
    • gsbot-rustsec-2026-0543-chrono: chrono 0.4.44 unmaintained, no safe upgrade.
    • gsbot-rustsec-2024-0388-derivative: derivative 2.2.0 unmaintained, no safe upgrade, pulled in by poise 0.6.2.
    • Both: "upstream serenity/poise/sqlx still depend; replace with jiff/time when they move".

The GSBot audit and the two unmaintained advisories

No deny.toml ignore entries are added (deny.toml still ignores nothing). .github/workflows/rust.yml runs cargo deny … check advisories --warn unmaintained, and RUSTSEC-2026-0543 (chrono) and RUSTSEC-2024-0388 (derivative) are both "unmaintained" advisories, so they only warn and do not fail the job. The url patch clears the one advisory that does fail it. The departure rows stay because the debt is real; a row records a defect, it is not a waiver of the gate.

Test results

  • cargo build --locked in bots/gsbot: OK. cargo test --locked: all pass.
  • departures.sh validate: 2 rows valid. departures.sh check at this commit: 2 present, 0 RESOLVED, 0 unevaluated.
  • Not run locally: cargo deny (not installed here); the audit result comes from this PR's CI.

Notes


Generated by Claude Code

url <= 2.5.8 recurses in Url::origin() on blob: URLs. Lock url to 2.5.9
with 'cargo update -p url --precise 2.5.9'; form_urlencoded moves from
1.2.2 to 1.2.3 with it. Only bots/gsbot/Cargo.lock changes. gsbot builds
and its tests pass with --locked.
Add .machine_readable/departures.jsonl (3-practice/DEPARTURES.adoc s.5)
with two blocked rows, each with a check that the dependency is still in
bots/gsbot/Cargo.lock:
- RUSTSEC-2026-0543 chrono (unmaintained, no safe upgrade)
- RUSTSEC-2024-0388 derivative (unmaintained, no safe upgrade, via poise)
Upstream serenity/poise/sqlx still depend; replace with jiff/time when
they move. No deny.toml ignore entries are added, so the GSBot audit
stays red on these two.

Copy link
Copy Markdown
Owner Author

The red build · test · clippy (robot-repo-automaton) here is not from this diff. It is the needless_bool lint ("this if guard returns a bool literal and is followed by another") that fires under CI's newer Rust, in robot-repo-automaton/src/confidence.rs, which this PR does not touch. #705 carries the one-line fix; this PR will go green on that check once #705 lands and it reruns.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 22, 2026 12:05
Repository owner deleted a comment from coderabbitai Bot Nov 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

Pinned source closure is red on this head (cb794741, the merge of main) but it is not caused by this PR: it is also red on main at f1b14e2a. The audit reports SOURCE-ACTIVE-MISSING (active caller/job/path/commit bindings in scripts/lib/pinned-reusable-sources.json differ from the actual workflow roots) after the hypatia pin bump in #699, and SOURCE-MISSING for the metadatastician/standards@b49a33e9 public HTTPS fetch. This PR touches neither the pins file nor any workflow, so I am leaving it; it needs a fix on main (the re-attest approach used in #698).


Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants